package com.zhou.common.mybatis.template.shiro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author zcy
 * @since 2022-08-12
 */
@Getter
@Setter
@TableName("system_log")
@ApiModel(value = "SystemLog对象", description = "系统日志表")
public class SystemLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("日志类型;0前端日志，1系统日志")
    private Integer type;

    @ApiModelProperty("ip地址")
    private String ipAddress;

    @ApiModelProperty("日志内容")
    private String content;

    @ApiModelProperty("操作结果")
    private String result;

    @ApiModelProperty("政策id")
    private Long policyId;

    @ApiModelProperty("删除标识;删除标识;删除标识;0表示未删除，1表示删除")
    private Boolean delFlag;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;


}
